// Author: wsfuyibing <682805@qq.com>
// Date: 2025-06-13

package scan

import (
	"gitee.com/go-libs/db-xorm/db"
	"server/app/kind"
)

// Request
// 入参.
type Request struct {
	Id   kind.UserId `validate:"required,min=1" label:"用户ID"`
	Date db.Date     `label:"日期过滤"`
}

// BeforeValidate
// 前置校验.
func (o *Request) BeforeValidate() (err error) {
	if o.Date.String() == "" {
		o.Date = db.NewDate()
	}
	return
}
